# 1 "test.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "test.c"
# 49 "test.c"
static const char *types__select[] = { __MAP(5,__SC_STR_TDECL,int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct timeval __user *, tvp) }; 
static const char *args__select[] = { __MAP(5,__SC_STR_ADECL,int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct timeval __user *, tvp) };
SYSCALL_TRACE_ENTER_EVENT(_select); 
SYSCALL_TRACE_EXIT_EVENT(_select); 
static struct syscall_metadata __used __syscall_meta__select = { .name = "sys""_select", .syscall_nr = -1, .nb_args = 5, .types = 5 ? types__select : NULL, .args = 5 ? args__select : NULL, .enter_event = &event_enter__select, .exit_event = &event_exit__select, .enter_fields = LIST_HEAD_INIT(__syscall_meta__select.enter_fields), };
static struct syscall_metadata __used __attribute__((section("__syscalls_metadata"))) *__p_syscall_meta__select = &__syscall_meta__select; 

asmlinkage long sys_select(__MAP(5,__SC_DECL,int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct timeval __user *, tvp)) __attribute__((alias(__stringify(SyS_select)))); 
static inline long SYSC_select(__MAP(5,__SC_DECL,int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct timeval __user *, tvp));
asmlinkage long SyS_select(__MAP(5,__SC_LONG,int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct timeval __user *, tvp));
asmlinkage long SyS_select(__MAP(5,__SC_LONG,int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct timeval __user *, tvp)) 
{ 
        long ret = SYSC_select(__MAP(5,__SC_CAST,int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct timeval __user *, tvp));
        __MAP(5,__SC_TEST,int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct timeval __user *, tvp);
        __PROTECT(5, ret,__MAP(5,__SC_ARGS,int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct timeval __user *, tvp));
        return ret;
} 

static inline long SYSC_select(__MAP(5,__SC_DECL,int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct timeval __user *, tvp))
{
 struct timespec end_time, *to = NULL;
 struct timeval tv;
 int ret;

 if (tvp) {
  if (copy_from_user(&tv, tvp, sizeof(tv)))
   return -EFAULT;

  to = &end_time;
  if (poll_select_set_timeout(to,
     tv.tv_sec + (tv.tv_usec / USEC_PER_SEC),
     (tv.tv_usec % USEC_PER_SEC) * NSEC_PER_USEC))
   return -EINVAL;
 }

 ret = core_sys_select(n, inp, outp, exp, to);
 ret = poll_select_copy_remaining(&end_time, tvp, 1, ret);

 return ret;
}
